<template>
  <div>
    <echarts2d :rela="allData" v-if="allData"></echarts2d>
  </div>
</template>

<script>
import {request} from '@/network/request'
import Echarts2d from '@/components/Echarts2d.vue'
  export default {
    name: 'twod',
    components: {
        Echarts2d
    },
    data() {
        return {
            allData: null
        }
    },
    methods: {
        async getAllData(){
            const res = await request('/get_all_relation')
            this.allData = res
        }
    },
    created() {
        this.getAllData()
    }
}
</script>

<style scoped>
  
</style>

